package cn.lhq.controller.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.lhq.bean.VoteResult;
import cn.lhq.service.UserService;
import cn.lhq.service.UserServiceImpl;

@Controller
@RequestMapping("/user")
public class DeleteUserController {
	@Resource
	UserService userService;
	
	@RequestMapping("/deleteUser.do")
	@ResponseBody
	public VoteResult deleteUser(String username){
		VoteResult result = null;
		try {
			result = userService.delete(username);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}
	
}
